#{extends 'main.html' /}
#{if project}
<h2>${project.name} > Edit Task Status</h2>
<hr/> #{form @Tasks.renderChangeTaskStatusName(project.getEntityId(),status.getEntityId(),name,false), id:'changeStatusForm'}
<p>
    <label for="author">
        Task Status Name: 
    </label>
    <input class="validate[required]" type="text" name="name" id="name" value = "${status.status}"/>
</p>
<p>
    <input type="submit" value="Save" />
</p>#{/form}
#{/if}
#{else}
<hr/> #{form @Tasks.renderChangeTaskStatusName(1,status.getEntityId(),name,true), id:'changeStatusForm'}
<p>
    <label for="author">
        Task Status Name: 
    </label>
    <input class="validate[required]" type="text" name="name" id="name" value = "${status.status}"/>
</p>
<p>
    <input type="submit" value="Save" />
</p>#{/form}
#{/else}